
<h1><span class="yiyi-st" id="yiyi-12">numpy.savez_compressed</span></h1>
        <blockquote>
        <p>原文：<a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.savez_compressed.html">https://docs.scipy.org/doc/numpy/reference/generated/numpy.savez_compressed.html</a></p>
        <p>译者：<a href="https://github.com/wizardforcel">飞龙</a> <a href="http://usyiyi.cn/">UsyiyiCN</a></p>
        <p>校对：（虚位以待）</p>
        </blockquote>
    
<dl class="function">
<dt id="numpy.savez_compressed"><span class="yiyi-st" id="yiyi-13"> <code class="descclassname">numpy.</code><code class="descname">savez_compressed</code><span class="sig-paren">(</span><em>file</em>, <em>*args</em>, <em>**kwds</em><span class="sig-paren">)</span><a class="reference external" href="http://github.com/numpy/numpy/blob/v1.11.3/numpy/lib/npyio.py#L577-L600"><span class="viewcode-link">[source]</span></a></span></dt>
<dd><p><span class="yiyi-st" id="yiyi-14">将多个数组以压缩的<code class="docutils literal"><span class="pre">.npz</span></code>格式保存到单个文件中。</span></p>
<p><span class="yiyi-st" id="yiyi-15">如果给出关键字参数，则从关键字获取文件名。</span><span class="yiyi-st" id="yiyi-16">如果传入的参数中没有关键字，则存储的文件名为arr_0，arr_1等。</span></p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name">
<col class="field-body">
<tbody valign="top">
<tr class="field-odd field"><th class="field-name"><span class="yiyi-st" id="yiyi-17">参数：</span></th><td class="field-body"><p class="first"><span class="yiyi-st" id="yiyi-18"><strong>文件</strong>：str</span></p>
<blockquote>
<div><p><span class="yiyi-st" id="yiyi-19"><code class="docutils literal"><span class="pre">.npz</span></code>文件的文件名。</span></p>
</div></blockquote>
<p><span class="yiyi-st" id="yiyi-20"><strong>args</strong>：参数</span></p>
<blockquote>
<div><p><span class="yiyi-st" id="yiyi-21">函数参数。</span></p>
</div></blockquote>
<p><span class="yiyi-st" id="yiyi-22"><strong>kwds</strong>：关键字参数</span></p>
<blockquote class="last">
<div><p><span class="yiyi-st" id="yiyi-23">关键词。</span></p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
<div class="admonition seealso">
<p class="first admonition-title"><span class="yiyi-st" id="yiyi-24">也可以看看</span></p>
<dl class="last docutils">
<dt><span class="yiyi-st" id="yiyi-25"><a class="reference internal" href="numpy.savez.html#numpy.savez" title="numpy.savez"><code class="xref py py-obj docutils literal"><span class="pre">numpy.savez</span></code></a></span></dt>
<dd><span class="yiyi-st" id="yiyi-26">将几个数组保存为未压缩的<code class="docutils literal"><span class="pre">.npz</span></code>文件格式</span></dd>
<dt><span class="yiyi-st" id="yiyi-27"><a class="reference internal" href="numpy.load.html#numpy.load" title="numpy.load"><code class="xref py py-obj docutils literal"><span class="pre">numpy.load</span></code></a></span></dt>
<dd><span class="yiyi-st" id="yiyi-28">加载由savez_compressed创建的文件。</span></dd>
</dl>
</div>
</dd></dl>
